// components/book-swiper/cpns/dx-swiper-item/dx-swiper-item.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    bookInfo: {
      type: Object,
      value: {
        book_name: "书名",
        author: "作者",
        bookImgUrl: "https://img9.doubanio.com/view/subject/s/public/s27264181.jpg"
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goDetail() {
      const bookInfo = this.data.bookInfo
      wx.navigateTo({
        url: `/pages/bookDetail/bookDetail?bookInfo=${JSON.stringify(bookInfo)}`,
      })
    }
  }
})